const fetch = require("node-fetch");
var Mock = require("mockjs");
const dayjs = require("dayjs");
// Import the v4 function from the uuid package
const { v4: uuidv4 } = require("uuid");
function getRandomIntInclusive(min, max) {
  const minCeiled = Math.ceil(min);
  const maxFloored = Math.floor(max);
  return Math.floor(Math.random() * (maxFloored - minCeiled + 1) + minCeiled);
}
const mapdata = async (ctx, next) => {
  var data = {
    // 城市
    city: [{name: '上海', code: 1}, {name: '北京', code: 2},{name: '苏州', code: 3},{name: '南京', code: 5}],
    cityAll: [],
    // 接待类别
    receptionCategory: [{
        value: 1,
        label: "政府类-特级：国家及地方正部级（含）以上领导",
        recommendDinnerStandard: "500元及以上",
      },
      {
        value: 2,
        label: "政府类-A级：国家及地方正厅级（含）至副部级领导",
        recommendDinnerStandard: "400-500元",
      },
      {
        value: 3,
        label: "政府类-B级：国家及地方正处级（含）至副厅级领导",
        recommendDinnerStandard: "250-400元",
      },
      {
        value: 4,
        label: "政府类-C级：国家及地方副处级以下领导",
        recommendDinnerStandard: "150-250元",
      },
      {
        value: 5,
        label: "商务类-特级：全球Top500公司总部/核心客户总部/核心供应链总部-董事长或CEO/第三方机构董事、CEO或高级合伙人",
        recommendDinnerStandard: "500元及以上",
      },
      {
        value: 6,
        label: "商务类-A级：核心客户总部或子公司/核心供应链公司总部或子公司-VP（含）级以上/中国科学院、中国工程院院士/985、211 高校",
        recommendDinnerStandard: "400-500元",
      },
      {
        value: 7,
        label: "商务类-B级：客户总部或子公司/供应链公司总部或子公司-业务部门主要负责人/普通高校",
        recommendDinnerStandard: "250-400元",
      },
      {
        value: 8,
        label: "商务类-C级：客户或供应链公司普通商务接待/内部客户（各基地员工）",
        recommendDinnerStandard: "150-250元",
      },
    ],
    // 性别
    sex: [
      { value: 0, label: "男" },
      { value: 1, label: "女" },
    ],
    // 申请单状态
    applicationStatusEnum: {
      DRAFT: -1,
      APPROVALING: 0,
      WAITING: 1,
      RECEPTIONING: 2,
      RECONCILIATION: 3,
      EVALUATING: 4,
      COMPLETED: 5,
      CANCELED: 6,
    },
    applicationStatus: [
      { value: -1, label: "草稿", color: "#CACACA" },
      { value: 0, label: "审批中", color: "#FB9A0E", icon: 'icon-trina-pic-shenpizhong' },
      { value: 1, label: "待接待", color: "#FB9A0E", icon: 'icon-trina-pic-daijiedai' },
      { value: 2, label: "接待中", color: "#008BD6", icon: 'icon-trina-pic-jiedaizhong' },
      { value: 3, label: "对账中", color: "#FB9A0E", icon: 'icon-trina-pic-duizhangzhong' },
      { value: 4, label: "待评价", color: "#FB9A0E", icon: 'icon-trina-pic-daipingjia' },
      { value: 5, label: "已完成", color: "#04B578", icon: 'icon-trina-pic-yiwancheng' },
      { value: 6, label: "已取消", color: "#CACACA", icon: 'icon-trina-pic-yiquxiao' },
    ],
    // 申请单审批状态
    approvalStatusEnum: {
      REJECT: 0,
      APPROVE: 1,
    },
    approvalStatus: [
      { value: 0, label: "驳回" },
      { value: 1, label: "成功" },
    ],
    // 申请模块状态
    applicationModuleStatusEnum: {
      NORMAL: 1,
      CANCELED: 0,
    },
    applicationModuleStatus: [
      { value: 0, label: "已取消", color: "#FF453A" },
      { value: 1, label: "正常", color: "#000000" },
    ],
    // 调度任务状态(申请调度之后)
    scheduleStatusEnum: {
      PENDING: 0,
      PROCESSED: 1,
      RECONCILIATION: 2,
      COMPLETED: 3,
      CANCELED: 4,
    },
    scheduleStatus: [
      { value: 0, label: "待处理", color: "#FB9A0E" }, //电子屏状态
      { value: 1, label: "已处理", color: "#FB9A0E" }, //电子屏状态
      { value: 2, label: "对账中", color: "#FB9A0E" },
      { value: 3, label: "已完成", color: "#04B578" },
      { value: 4, label: "已取消", color: "#FF453A" }, //电子屏状态
    ],
    // 住宿服务安排结果
    accomArrangeStatus: [
      { value: 0, label: "未完成", color: "#FB9A0E" },
      { value: 1, label: "已完成", color: "#04B578" },
      { value: 2, label: "已取消", color: "#FF453A" },
  ],
    // 调度任务安排状态/行程状态，每个模块中名称可能都不同
    arrangeStatusEnum: {
      UNCOMPLETED: 0,
      COMPLETED: 1,
      CANCELED: 2,
    },
    arrangeStatus: [
      { value: 0, label: "未完成", color: "#FB9A0E" },
      { value: 1, label: "已完成", color: "#04B578" },
      { value: 2, label: "已取消", color: "#FF453A" },
    ],
    // 账单状态
    billStatusEnum: {
      UNREGISTERED: 0,
      REGISTERED: 1,
      NOREGISTRATION: 2,
    },
    billStatus: [
      { value: 0, label: "未登记", color: "#FB9A0E" },
      { value: 1, label: "已登记", color: "#04B578" },
      { value: 2, label: "无需登记", color: "#C0C0C0" },
    ],
    // 对账结果, 存疑后重新登记账单会变成-1，判断时注意
    billResultEnum: {
      IMPEACH: 0,
      CONFIRM: 1,
    },
    billResult: [
      { value: 0, label: "账单存疑" },
      { value: 1, label: "确认无误" },
    ],
    // 车型
    vehicleModel: [
      { value: "1", label: "轿车4座" },
      { value: "2", label: "商务车7座以内" },
      { value: "3", label: "考斯特19座以内" },
      { value: "4", label: "大巴49座以内" },
      { value: "5", label: "别克GL8" },
      { value: "6", label: "大巴55座以内" },
    ],
    // 车辆配置
    vehicle: [],
    vehicleAll: [],
    cityVehicleFeeAll: [],
    // 酒店
    hotel: [],
    hotelAll: [],
    // 酒店入住标准
    hotelStandard: [
      { id: 1, name: "150-300" },
      { id: 2, name: "300-500" },
      { id: 3, name: "500-600" },
    ],
    // 付款方式
    paymentType: [
      { value: 0, label: "公司支付" },
      { value: 1, label: "个人支付" },
      { value: 2, label: "客人与公司共同承担，客人每日支付", suffix: "元" },
    ],
    // 房型
    roomType: [
      { id: 1, roomName: "大床房" },
      { id: 2, roomName: "双床房" },
    ],
    // IT支持
    itSupport: [
      { value: 1, label: "是" },
      { value: 0, label: "否" },
    ],
    // 是否需要会议服务
    isNeedConference: [
      { value: 1, label: "是" },
      { value: 0, label: "否" },
    ],
    // 会场特殊布置(这里的配置项由于后续迭代有点乱,迭代后 顺序不能变-注意)
    specialMeetingArrangement: [{
        key: 1,
        label: "茶饮服务",
        children: [
          { key: 1, label: "溧阳白茶", type: "number", includeCities: [
              "上海"
            ] },
          { key: 2, label: "红茶", type: "number", includeCities: [
              "常州"
            ] },
          { key: 3, label: "白开水", type: "number" },
          { key: 4, label: "现磨咖啡", type: "number" },
          { key: 16, label: "白茶", type: "number", includeCities: [
              "常州"
            ] },
        ],
      },
      {
        key: 6,
        label: "签约基础服务",
        children: [
          { key: 10, label: "签约桌椅", type: "number", includeCities: [
              "常州"
            ] },
          { key: 11, label: "签约本和笔", type: "number" },
          { key: 12, label: "茶歇桌", type: "number" },
          { key: 13, label: "演讲台", type: "number", includeCities: [
              "常州"
            ] },
        ],
      },
      {
        key: 3,
        label: "席卡服务",
        children: [{
            key: 7,
            label: "席卡颜色",
            type: "radio",
            options: [
              { key: 1, label: "白色" },
              { key: 2, label: "粉色" },
            ],
            labelInBill: "席卡服务费",
          },
          {
            key: 8,
            label: "席卡内容",
            type: "text",
            maxLength: 200,
            hideInBill: true,
          },
        ],
      },
      {
        key: 2,
        label: "茶歇服务（30元/份）",
        labelForCity: { 上海: "茶歇服务（40元/份）" },
        children: [
          { key: 5, label: "水果盘（5种水果，随机搭配）", type: "number" },
          { key: 6, label: "水果+点心盘（各3种，随机搭配）", type: "number" },
        ],
      },
      {
        key: 4,
        label: "签约收费服务",
        children: [{
            key: 9,
            label: "签约桌花（250元）",
            type: "number",
            includeCities: ["常州"],
          },
          {
            key: 14,
            label: "横幅（120元）",
            type: "radio",
            options: [
              { key: 1, label: "需要" },
              { key: 0, label: "不需要" },
            ],
          },
          { key: 15, label: "横幅内容", type: "text", maxLength: 50 },
        ],
      },
    ],
    // 会议账单除了specialMeetingArrangement之外的选项
    meetingBillCategory: [{
      key: 5,
      label: "服务费",
      children: [{ key: 16, label: "会务服务费", type: "number" }],
    }, ],
    // 酒水分类
    drinkCategory: [],
    drinkCategoryAll: [],
    // 电子屏
    electronicScreen: [],
    electronicScreenAll: [],
    // 展厅状态
    showRoomStatus: [
      { value: 0, label: "闭馆" },
      { value: 1, label: "开馆" },
    ],
    // 展厅
    showRooms: [],
    showRoomsAll: [],
    // 是否需要讲解员
    needInterpreterOptions: [
      { value: 1, label: "需要" },
      { value: 0, label: "不需要" },
    ],
    // 讲解语言
    explanationLanguage: [{
        value: 0,
        label: "英语",
        includeShowrooms: [
          "储能集成工厂",
          "储能PACK车间",
          "梦想与创新展示中心",
          "储能电芯实验室",
          "支架展厅&车间",
        ],
        includeShowroomsId: [2, 3, 4, 5, 7],
      },
      { value: 1, label: "中文" },
    ],
    // 讲解版本
    explanationVersion: [
      { value: 0, label: "通用版本" },
      { value: 1, label: "政府版本" },
      { value: 2, label: "党建版本" },
    ],
    // 讲解通道（只有m3车间有，名称匹配）
    explanationRoute: [
      { value: "0", label: "车间" },
      { value: "1", label: "通道" },
    ],
    // 是否需要拍照
    needPhotographOptions: [
      { value: 1, label: "需要" },
      { value: 0, label: "不需要" },
    ],
    photoNotSupportShowrooms: [
      { id: 3, name: "储能集成工厂"},
      { id: 4, name: "储能PACK车间"},
      { id: 7, name: "梦想与创新展示中心"},
      { id: 5, name: "储能电芯实验室"},
    ],
    // 餐标
    dinnerStandard: [
      { value: "1", label: "150/人" },
      { value: "2", label: "200/人" },
      { value: "7", label: "250/人" },
      { value: "3", label: "300/人" },
      { value: "8", label: "350/人" },
      { value: "4", label: "400/人" },
      { value: "5", label: "500/人" },
      { value: "6", label: "500以上/人" },
    ],
    // 餐标(自助餐-打包、自助餐-堂食)
    dinnerStandard4Buffet: [{ value: "7", label: "30/人" }],
    // 用餐安排
    mealArrangementTypeEnum: {
      SELF: 0,
      ADMINISTRATION: 1,
    },
    mealArrangementType: [
      { value: 0, label: "个人安排" },
      { value: 1, label: "公司代订" },
    ],
    // 餐厅
    restaurant: [],
    restaurantAll: [],
    // 酒水
    beverage: [],
    beverageAll: [],
    // 用餐类型
    mealTypeEnum: {
      MIDDLE: 1,
      NIGHT: 2,
    },
    mealType: [
      // { value: 0, label: "早餐" },
      { value: 1, label: "午餐" },
      { value: 2, label: "晚餐" },
    ],
    // 用餐形式
    mealForm: [
      { value: 0, label: "自助餐-堂食" },
      { value: 1, label: "自助餐-打包" },
      { value: 2, label: "包厢用餐" },
    ],
    // 城市支持的用餐形式
    diningFormat: [],
    // 酒水类型
    beverageType: [
      { value: 0, label: "外部" },
      { value: 1, label: "内部" },
    ],
    // 包厢,餐厅,酒店状态
    sysStatus: [
      { value: 0, label: "停用" },
      { value: 1, label: "正常" },
    ],
    // 电子屏状态
    electronicScreenWelcomeStatus: [
      { value: 0, label: "待处理" },
      { value: 1, label: "已处理" },
      { value: 2, label: "已取消" },
    ],
    // 酒店星级
    hotelStar: [
      { value: 5, label: "五星级" },
      { value: 4, label: "四星级" },
      { value: 3, label: "经济型" },
    ],
    // 车辆类型
    vehicleTypeEnum: {
      INNER: "0",
      OUTER: "1",
    },
    vehicleType: [
      { value: "0", label: "内部" },
      { value: "1", label: "外部" },
    ],
    // 司机类型
    driverTypeEnum: {
      INNER: 0,
      OUTER: 1,
    },
    driverType: [
      { value: 0, label: "内部" },
      { value: 1, label: "外部" },
    ],
    // 出车状态
    vehicleShipStatus: [
      { value: 0, label: "未出车" },
      { value: 1, label: "已出车" },
    ],
    // 车辆收费状态
    vehicleChargeStatus: [
      { value: 0, label: "不收费" },
      { value: 1, label: "收费" },
    ],
    // 车辆用途
    vehicleUsage: [
      { value: 1, label: "接待" },
      { value: 2, label: "班车" },
      { value: 3, label: "专车" },
    ],
    // 车辆状态
    vehicleStatusEnum: {
      NORMAL: 1,
      MAINTAIN: 2,
      SCRAP: 3,
      INACTIVE: 4,
    },
    vehicleStatus: [
      { value: 1, label: "正常" },
      { value: 2, label: "维修" },
      { value: 3, label: "报废" },
      { value: 4, label: "停用" },
    ],
    // 司机
    drivers: [],
    // 讲解员
    guides: [],
    // 对账记录->操作
    billOperation: [
      { value: 0, label: "上传" },
      { value: 1, label: "系统自动生成" },
      { value: 2, label: "确认" },
      { value: 3, label: "存疑" },
    ],
    dataScopes: [
      { value: "5", label: "本人" },
      { value: "4", label: "本部门及下级部门" },
      { value: "1", label: "全部组织" },
      // {value: "2", label: '自定义数据权限'},
      // {value: "3", label: '本部门'},
    ],
    // 用餐安排是否出餐
    dinerOutEnum: {
      UNPAIDMEAL: 0,
      MEALALREADY: 1,
    },
    dinerOut: [
      { value: 0, label: "未出餐" },
      { value: 1, label: "已出餐" },
    ],
    // 酒店状态
    roomStatusEnum: {
      COMPLETED: 1,
      CANCELED: 2,
    },
    // 预约房间状态
    addRoomStatusEnum: {
      APPROVALING: 0,
      SUCCESS: 1,
      FAIL: 2,
    },
    addRoomStatus: [
      { value: 0, label: "审批中", color: "#409EFF" },
      { value: 1, label: "预约成功", color: "#67C23A" },
      { value: 2, label: "预约失败", color: "#F56C6C" },
    ],
    // 礼品分类
    giftClassifications: [],
    // 礼品
    gifts: [],
    giftsAll: [],
    // 礼品领取地点
    giftReceiveAddresses: [],
    // 礼品领用状态
    giftReceiveStatus: [
      { value: 0, label: "未确认", color: "#000" },
      { value: 1, label: "待领用", color: "#000" },
      { value: 2, label: "已取消", color: "#FF453A" },
      { value: 3, label: "已领用", color: "#000" },
    ],
    giftReceiveStatusEnum: {
      UNCONFIRMED: 0,
      TO_BE_RECEIVED: 1,
      CANCELED: 2,
      RECEIVED: 3,
    },
    //需求状态（0已取消 1正常）
    appStatusEnum: {
      NORMAL: 1,
      CANCLED: 0,
    },
    // 礼品服务是否领用
    giftIsReceiveEnum: {
      IS: 0,
      NO: 1,
    },
    giftIsReceive: [
      { value: 0, label: "未领", color: "#F56C6C" },
      { value: 1, label: "已领", color: "#04B578" },
    ],
    /**
     * 城市支持的服务列表
     * eg:[{id:1,name:"常州",data:[1,2,3,4,5,6,7,8]}]
     */
    citesSupportServices: [],
    // 
    /**
     * 城市支持的服务列表映射
     * 1:礼品服务 2：外部用餐 3：公司用餐 4：用车服务 5：参观服务 6：住宿服务 7：会议服务 8：电子屏服务
     */
    serviceMap: {
      GIFT: 1,
      OUTER_DINNER: 2,
      INNER_DINNER: 3,
      VEHICLE: 4,
      VISIT: 5,
      HOTEL: 6,
      MEETING: 7,
      ELECTRONIC_SCREEN: 8
    },
    serviceTabs: [
      {
        name: "车辆",
        id: "vehicle",
        keys: [4],
        iconClass: "iconfont icon-trina-yongche1",
      },
      {
        name: "参观",
        id: "visiting",
        keys: [5],
        iconClass: "iconfont icon-trina-baifang1",
      },
      {
        name: "住宿",
        id: "accommodate",
        keys: [6],
        iconClass: "iconfont icon-trina-zhusu1",
      },
      {
        name: "用餐",
        id: "dining",
        keys: [2, 3],
        iconClass: "iconfont icon-trina-yongcan1",
      },
      {
        name: "会议",
        id: "meeting",
        keys: [7],
        iconClass: "iconfont icon-trina-huiyi1",
      },
      {
        name: "礼品",
        id: "gift",
        keys: [1],
        iconClass: "iconfont icon-trina-lipin",
      },
      {
        name: "电子屏",
        id: "electronicScreen",
        keys: [8],
        iconClass: "iconfont icon-trina-LED1",
      },
    ],
    itSupportTip: {},
    meetServiceTip: {},
    // 城市会议服务配置
    cityMeetingArrangementConfig: {},
  };

  ctx.response.body = {
    status: 1,
    data: data,
  };
};

mapdata.method = "get";
mapdata.name = "mapdata";

module.exports = mapdata;


